package com.xinqi.modules.databank.dto.req.question;

import com.xinqi.common.base.dto.CommonFileDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 课程测评学生答题内容
 *
 * @author linkai
 * @date 2023/7/3
 */
@Data
@Schema(description = "课程测评学生答题内容")
public class ResourceAnswerDTO {

    /**
     * 学生ID
     */
    @Schema(description = "学生ID", example = "10001")
    private Long studentId;

    /**
     * 试题ID
     */
    @Schema(description = "试题ID", example = "10001")
    private Long questionId;

    /**
     * 是否作答
     */
    @Schema(description = "是否作答", example = "0")
    private Boolean isReply;

    /**
     * 答题是否正确
     */
    @Schema(description = "答题是否正确", example = "0")
    private Boolean isRight;

    /**
     * 题目分数
     */
    @Schema(description = "题目分数", example = "0.0")
    private BigDecimal score;

    /**
     * 学生分值
     */
    @Schema(description = "学生分值", example = "0.0")
    private BigDecimal studentScore;

    /**
     * 用户答案
     */
    @Schema(description = "用户答案", example = "")
    private String studentAnswer;

    /**
     * 用户答案文件
     */
    @Schema(description = "用户答案文件", example = "")
    private List<CommonFileDTO> studentAnswerFiles;

}
